Skip to content

Conversation

@zielinsky
Copy link
Member

fixes #23928

@zielinsky zielinsky force-pushed the i23928 branch 4 times, most recently from f90b7ef to 73353ba Compare September 19, 2025 15:32
@zielinsky zielinsky marked this pull request as ready for review September 24, 2025 15:52
if (fun.symbol.name == nme.unapplySeq)
val (arity, elemTp, resultTp) = unapplySeqInfo(fun.tpe.widen.finalResultType, fun.srcPos)
if fun.symbol.owner == defn.SeqFactoryClass && pat.tpe.hasClassSymbol(defn.ListClass) then
if fun.symbol.owner == defn.SeqFactoryClass && toUnderlying(pat.tpe).dealias.derivesFrom(defn.ListClass) then
Copy link
Member

@hamzaremmal hamzaremmal Oct 23, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm a bit surprised that the Space engine knows about specifics of the stdlib.

@zielinsky zielinsky merged commit 41d321d into scala:main Oct 23, 2025
51 checks passed
@WojciechMazur WojciechMazur added this to the 3.8.0 milestone Oct 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

False exhaustivity warning for seq match

3 participants